<template>
  <div ref="ref15">我是15-ref操作dom</div>
  <Test ref="refTest" />
</template>

<script>
import { ref, onMounted } from "vue";
import Test from "./16-Test.vue";
export default {
  components: {
    Test,
  },
  setup() {
    const ref15 = ref(null);
    const refTest = ref(null);
    onMounted(() => {
      console.log("操作15", ref15);
      console.log(ref15.value);
      console.log("操作test", refTest);
      console.log(refTest.value);
    });
    return {
      ref15,
      refTest,
    };
  },
};
</script>

<style>
</style>